package com.ml.mall.bean.req.order;

import com.ml.mall.bean.req.BaseBeanReq;
import lombok.Data;

import javax.validation.constraints.Pattern;
import java.util.Date;

/**
 * 用于修改卖家订单状态；
 */
@Data
public class OrderEditReq extends BaseBeanReq {

    @Pattern(regexp = "0|1|2|3|4|7",message = "订单状态不正确")
    private String state;

//    @Pattern(regexp = "0|1",message = "配送类型不正确")
    private String deliveryType;

    private String  deliveryOid;   //物流单号

    private String  deliveryName;   //物流公司

    private Date  deliveryAt;   //配送时间

    private Long oid; //订单id
}
